package com.itchen.school.common.jdkext.extensions;

import java.util.HashMap;

public class DHashMap<K, V, D> extends HashMap<K, V> {

    private HashMap<K, D> dataMap = new HashMap();

    public DHashMap() {}

    public D getData(K key) {
        return this.dataMap.get(key);
    }

    public DHashMap<K, V, D> put(K key, V value, D data) {
        this.put(key, value);
        this.dataMap.put(key, data);
        return this;
    }

}